package com.yunhui.mapper;


import com.yunhui.entity.RouteIssued;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
public interface  RouteIssuedMapper extends BaseMapper<RouteIssued> {
    /**
     * 查询总条数
     * @return
     */
    public Integer findCount(@Param("name") String routeslssued,@Param("mId") Integer mid);

    /**
     * 分页查询商家
     * @return
     */
    public List<RouteIssued> findPage(@Param("size") int Size, @Param("index") int pageIndex, @Param("name") String routeslssued,@Param("mId") Integer mid);

    /**
     * 删除
     */
    public Integer deleteRoutlssuedAndJb(@Param("idz") Integer id);

    /**
     * 发布行程
     */
    public Integer addRouteIssued(@Param("jbId") Integer id, @Param("startTimes") Date startTimes, @Param("days") Integer days);


    /**
     * 查询行程人数
     * @param jbId
     * @return
     */
    public Integer selectByJbId(Integer jbId);

}
